#ifndef MYTCPSOCKETTODEVICE_H
#define MYTCPSOCKETTODEVICE_H

#include "mytcpsocket.h"

class MyTcpSocketToDevice : public MyTcpSocket
{
    Q_OBJECT
public:
    explicit MyTcpSocketToDevice(QObject *parent = nullptr);

public slots:
    virtual void sendDataToAll(const QByteArray &data);

protected:
    virtual void handleFrame(const QJsonObject &obj);
    void handleHeartFrame(const QJsonObject &obj);
    void handleSensorDataFrame(const QJsonObject &obj);
    QStringList deviceList;
};

#endif // MYTCPSOCKETTODEVICE_H
